package com.smarthealthring.mm.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.smarthealthring.mm.R;
import com.smarthealthring.mm.base.BaseActivity;
import com.smarthealthring.mm.base.IPresenter;
import com.jakewharton.rxbinding2.view.RxView;

import butterknife.BindView;
import io.reactivex.functions.Consumer;

/**
 * 体重步数设置
 */
public class WalkSetActivity extends BaseActivity {
    @BindView(R.id.tv_weight)
    TextView mTvWeight;
    @BindView(R.id.tv_finish)
    TextView mTvFinish;

    @Override
    protected void initComToolBar() {

    }

    @Override
    protected int getLayout() {
        return R.layout.act_walkset;
    }

    @Override
    protected void initEventAndData(@Nullable Bundle savedInstanceState) {
        RxView.clicks(mTvFinish)
                .subscribe(new Consumer<Object>() {
                    @Override
                    public void accept(Object o) throws Exception {
                        startActivity(new Intent(mContext, DevicesActivity.class));
                    }
                });
    }

    @Override
    protected IPresenter createPresenter() {
        return null;
    }
}
